diff --git a/build.gradle b/build.gradle
index 671edab..d9ecfef 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,6 +5,7 @@ buildscript {
     repositories {
         google()
         mavenCentral()
+        maven { url System.getenv("GRADLE_MAVEN_REPO") }
     }
     dependencies {
         classpath "com.android.tools.build:gradle:${androidplugin}"
@@ -20,5 +21,6 @@ allprojects {
         mavenCentral()
         maven { url "https://repo.spring.io/plugins-release" }
         maven { url "https://raw.githubusercontent.com/guardianproject/gpmaven/master" }
+        maven { url System.getenv("GRADLE_MAVEN_REPO") }
     }
 }
\ No newline at end of file
diff --git a/service/build.gradle b/service/build.gradle
index b414557..ae3e203 100644
--- a/service/build.gradle
+++ b/service/build.gradle
@@ -16,12 +16,6 @@ android {
         }
     }
 
-    externalNativeBuild {
-        ndkBuild {
-            path "src/main/jni/Android.mk"
-            buildStagingDirectory "./outputs/ndk-build"
-        }
-    }
 
     lintOptions {
         abortOnError false
